package net.maku.auth.security.facade;

import net.maku.auth.api.SysUserTokenFacade;
import net.maku.auth.security.service.SysUserTokenService;
import org.springframework.stereotype.Component;

@Component
public class SysUserTokenFacadeImpl implements SysUserTokenFacade {

    private final SysUserTokenService sysUserTokenService;

    public SysUserTokenFacadeImpl(SysUserTokenService sysUserTokenService) {
        this.sysUserTokenService = sysUserTokenService;
    }

    @Override
    public void updateCacheAuthByRoleId(Long id) {
        sysUserTokenService.updateCacheAuthByRoleId(id);
    }

    @Override
    public void updateCacheAuthByUserId(Long userId) {
        sysUserTokenService.updateCacheAuthByUserId(userId);
    }
}
